package com.ssh.service.Impl;

import com.ssh.bean.User;
import com.ssh.dao.UserDao;
import com.ssh.service.UserService;

public class UserServiceImpl implements UserService {
	private UserDao userDao;
	

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public User getUserbyId(int userId) {
		return userDao.getUserbyId(userId);
	}

	@Override
	public void save(User user) {
		userDao.save(user);
		
	}

}
